package anonymouschat.messages;

import java.io.Serializable;


/**
 * This message announces that a server has just started up.
 * 
 * @author bh349
 */
public class ServerAnnounceMessage extends Message implements Serializable {
	private static final long serialVersionUID = 2188148542441890727L;

	private String name;

	public ServerAnnounceMessage(String nameIn) {
		this.setName(nameIn);
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	@Override
	public String getAllContents() {
		return "ServerAnnounceMessage: " + this.name;
	}
}
